.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.featureItem {
  position: relative;
  cursor: pointer;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1890ff, #722ed1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  &:hover::before {
    transform: scaleX(1);
  }
}

.featureImage {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.featureImage1 {
  width: 180px;
  height: 180px;
  text-align: center;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.featureItem:hover .featureImage {
  transform: scale(1.02);
}

.featureItem:hover .featureImage1 {
  transform: scale(1.02);
}

.featureTitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ifm-heading-color);
  transition: color 0.3s ease;
}

.featureItem:hover .featureTitle {
  color: #1890ff;
}

.featureDesc {
  color: var(--ifm-font-color-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

.featureLink {
  display: inline-flex;
  align-items: center;
  color: #1890ff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  text-align: end;
  text-decoration: none !important;

  &::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
  }

  &:hover {
    color: #40a9ff;
    text-decoration: none !important;
  }

  &:hover::after {
    transform: translateX(3px);
  }
}

